﻿using System;

namespace CML.Intercamber.Business.Dao
{
    public class UserConnectionsDao
    {
        public static void InsertConnectionLog(long idUser)
        {
            using (var context = new IntercamberEntities())
            {
                DateTime now = DateTime.Now;
                context.UserConnections.Add(new UserConnections
                {
                    IdUser = idUser,
                    DateConnection = now
                });
                context.SaveChanges();
            }
        }
    }
}
